package com.my.blog.website.modal.Vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QuestionCommentsVo对象", description="")
public class QuestionCommentsVo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * Database Column Remarks:
     *   问答评论id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.id
     *
     * @mbg.generated
     */
    private String id;

    /**
     * Database Column Remarks:
     *   问答id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.question_id
     *
     * @mbg.generated
     */
    private String questionId;

    /**
     * Database Column Remarks:
     *   评论者id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.user_id
     *
     * @mbg.generated
     */
    private String userId;

    /**
     * Database Column Remarks:
     *   评论者昵称
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.user_name
     *
     * @mbg.generated
     */
    private String userName;

    /**
     * Database Column Remarks:
     *   评论者头像
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.avatar
     *
     * @mbg.generated
     */
    private String avatar;

    /**
     * Database Column Remarks:
     *   评论时间
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.create_time
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * Database Column Remarks:
     *   父评论id  0父
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.parent_comment_id
     *
     * @mbg.generated
     */
    private String parentCommentId;

    /**
     * Database Column Remarks:
     *   评论内容
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_question_comments.content
     *
     * @mbg.generated
     */
    private String content;

    //回复评论
    private List<QuestionCommentsVo> replyComments = new ArrayList<>();
    private QuestionCommentsVo parentComment;
    private String parentUserName;

}